﻿
@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "新增-系统参数";
}
<div class="pageContent">
    <form method="post" action="System/SysConfig/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="80">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <div class="MyPanel">
                <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                <div class="b d1 k">
                    <div class="Title">人员借调明细</div>
                    <div class="Content">
                        <p>
                            <label>
                                班次编号：
                            </label>

                            @if (ViewBag.IsCreate == true)
                            {
                                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @class = "required IsExisted", ajaxurl = "System/SysConfig/IsExist" })
                            }
                            else
                            {
                                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                            }
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
                        </p>
                        <p>
                            <label>
                                班次名称：
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                        </p>
                        <p>
                            <label>
                                班次性质：
                            </label>
                            <select id="Class" name="Class" class="required">
                                <option value="白班">白班</option>
                                <option value="晚班">晚班</option>
                            </select>
                        </p>
                        <p>
                            <label>
                                开始时间：
                            </label>
                            <input type="text" name="date11" class="date textInput readonly" datefmt="HH:mm">
                        </p>
                        <p>
                            <label>
                                结束时间：
                            </label>
                            <input type="text" name="date12" class="date textInput readonly" datefmt="HH:mm">
                        </p>
                        <p>
                            <label>
                                工作时间合计(时)：
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                        </p>
                        <p>
                            <label>
                                正常工作时间合计(时)
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)

                        </p>
                        <p>
                            <label>
                                有效时间合计(时)
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)

                        </p>
                        <p>
                            <label>
                                工作中心编码：
                            </label>
                            <input name="Workcenter.id" value="1" type="hidden">
                            <input name="Workcenter.Workcentercode" type="text" class="textInput valid">
                            <a class="btnLook" href="Equipment/EquipmentArchives/SelectWorkcenter" lookupgroup="Workcenter">查找带回</a>
                        </p>

                        <p>
                            <label>
                                工作中心描述：
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Id, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                        </p>
                        <p style="width:100%;height:35px;">
                            <label>
                                备注:
                            </label>
                            @Html.TextBoxFor(sysConfig => sysConfig.Value, new { style = "width:70%;height:40px;" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
                        </p>
                        <p></p>
                    </div>
                </div>
                <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
            </div>
            <div class="MyPanel">
                <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                <div class="b d1 k">
                    <div class="Title">休息时段</div>
                    <div class="Content">
                        <div inited="1000" style="display: block;">
                            <table class="list nowrap itemDetail" addbutton="新增" width="100%" style="clear: both;" isrownum="false">
                                <thead>
                                    <tr>
                                        <th type="text" name="items[#index#].itemString" size="12" fieldclass="required" fieldattrs="{remote:'validate_remote.html', maxlength:10}">ID</th>
                                        <th type="date" datefmt="HH:mm:ss" name="items[#index#].itemString" size="12" fieldclass="required" fieldattrs="{remote:'validate_remote.html', maxlength:10}">开始时间</th>
                                        <th type="date" datefmt="HH:mm:ss" name="items[#index#].itemString" size="12" fieldclass="required" fieldattrs="{remote:'validate_remote.html', maxlength:10}">结束时间</th>
                                        <th type="text" name="items[#index#].itemString" size="12" fieldclass="required" fieldattrs="{remote:'validate_remote.html', maxlength:10}">合计时长(分)</th>
                                        <th type="del" width="60">操作</th>
                                    </tr>
                                </thead>
                                <tbody></tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
            </div>
            @Html.Partial("Operation", Model)
        </div>
    </form>
    @Html.Partial("FormButtonBar")
</div>



